package com.gxjtkyy.datadistributer.writer.rdbms.config;

import com.gxjtkyy.datadistributer.writer.rdbms.constant.DbRecordFilterType;
import java.util.Set;

public class DbRecordFilterConfig {
   private String filterColumn;
   private DbRecordFilterType filterType;
   private Set<String> orgaCodes;

   public String getFilterColumn() {
      return this.filterColumn;
   }

   public DbRecordFilterType getFilterType() {
      return this.filterType;
   }

   public Set<String> getOrgaCodes() {
      return this.orgaCodes;
   }

   public void setFilterColumn(final String filterColumn) {
      this.filterColumn = filterColumn;
   }

   public void setFilterType(final DbRecordFilterType filterType) {
      this.filterType = filterType;
   }

   public void setOrgaCodes(final Set<String> orgaCodes) {
      this.orgaCodes = orgaCodes;
   }

   public boolean equals(final Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof DbRecordFilterConfig)) {
         return false;
      } else {
         DbRecordFilterConfig other = (DbRecordFilterConfig)o;
         if (!other.canEqual(this)) {
            return false;
         } else {
            label47: {
               Object this$filterColumn = this.getFilterColumn();
               Object other$filterColumn = other.getFilterColumn();
               if (this$filterColumn == null) {
                  if (other$filterColumn == null) {
                     break label47;
                  }
               } else if (this$filterColumn.equals(other$filterColumn)) {
                  break label47;
               }

               return false;
            }

            Object this$filterType = this.getFilterType();
            Object other$filterType = other.getFilterType();
            if (this$filterType == null) {
               if (other$filterType != null) {
                  return false;
               }
            } else if (!this$filterType.equals(other$filterType)) {
               return false;
            }

            Object this$orgaCodes = this.getOrgaCodes();
            Object other$orgaCodes = other.getOrgaCodes();
            if (this$orgaCodes == null) {
               if (other$orgaCodes != null) {
                  return false;
               }
            } else if (!this$orgaCodes.equals(other$orgaCodes)) {
               return false;
            }

            return true;
         }
      }
   }

   protected boolean canEqual(final Object other) {
      return other instanceof DbRecordFilterConfig;
   }

   public int hashCode() {
//      int PRIME = true;
      int result = 1;
      Object $filterColumn = this.getFilterColumn();
      result = result * 59 + ($filterColumn == null ? 43 : $filterColumn.hashCode());
      Object $filterType = this.getFilterType();
      result = result * 59 + ($filterType == null ? 43 : $filterType.hashCode());
      Object $orgaCodes = this.getOrgaCodes();
      result = result * 59 + ($orgaCodes == null ? 43 : $orgaCodes.hashCode());
      return result;
   }

   public String toString() {
      String var10000 = this.getFilterColumn();
      return "DbRecordFilterConfig(filterColumn=" + var10000 + ", filterType=" + this.getFilterType() + ", orgaCodes=" + this.getOrgaCodes() + ")";
   }
}
